package com.qiangesoft.blog.system.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qiangesoft.blog.common.mvc.PageQuery;
import com.qiangesoft.blog.common.mvc.PageResultVO;
import com.qiangesoft.blog.system.entity.SysDict;

import java.util.List;

/**
 * <p>
 * 字典 服务类
 * </p>
 *
 * @author qiange
 * @since 2023-06-01
 */
public interface ISysDictService extends IService<SysDict> {

    /**
     * 字典列表
     *
     * @param name
     * @param isPublish
     * @param descColumn
     * @param ascColumn
     * @return
     */
    PageResultVO<SysDict> listDict(PageQuery pageQuery, String name, Boolean isPublish, String descColumn, String ascColumn);

    void insertDict(SysDict dict);

    void updateDict(SysDict dict);

    void deleteDict(Long id);

    void deleteBatch(List<Long> list);
}
